#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int a = 0,b=0;
	int arr1[3] = { 1,2,3 };
	int arr2[3] = { 4,5,6 };
	for (a = 0; a < 3; a++)
	{
		b = arr1 [a];
		arr1[a] = arr2[a];
		arr2[a] = b;
	}
	for (a = 0; a < 3; a++)
	{
		printf("%d", arr1[a]);
	}
	printf("\n");
	for (a = 0; a < 3; a++)
	{
		printf("%d", arr2[a]);
	}
	printf("\n");
	return 0;
}